package com.unisound.tracelog.server.ui.model.request;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

@Data
@NoArgsConstructor
public class TraceLogTagSearchRequest {
    private String tagKey;
    private String tagValue;

    public TraceLogTagSearchRequest(String tagKey, String tagValue) {
        this.tagKey = StringUtils.trimToNull(tagKey);
        this.tagValue = StringUtils.trimToNull(tagValue);
    }

    public void setTagKey(String tagKey) {
        this.tagKey = StringUtils.trimToNull(tagKey);
    }

    public void setTagValue(String tagValue) {
        this.tagValue = StringUtils.trimToNull(tagValue);
    }
}
